package day15.atm;

import javax.swing.*;
import java.awt.*;

/**
 * 取款界面
 */
public class GetPanel extends JPanel {
    private ImageIcon saveImg = new ImageIcon("images/buttonClear.jpg");
    private ImageIcon saveImg1 = new ImageIcon("images/buttonSure.jpg");
    private JLabel saveLabel = new JLabel("取款金额：");
    private JTextField saveTextField = new JTextField();
    private Font font = new Font("黑体",Font.BOLD,30);
    private JButton saveBtn = new JButton(saveImg);
    private JButton saveBtn1 = new JButton(saveImg1);
    public GetPanel(){
        this.setLayout(null);
        saveLabel.setBounds(300,200,180,50);
        saveLabel.setFont(font);

        saveTextField.setBounds(440,200,180,50);
        saveTextField.setFont(font);

        saveBtn.setBounds(442,260,140,50);
        saveBtn1.setBounds(442,320,140,50);
        this.add(saveLabel);
        this.add(saveTextField);
        this.add(saveBtn);
        this.add(saveBtn1);
        this.setOpaque(false);
    }
}
